#ifndef STONEWT_H_
#define STONEWT_H_

class Stonewt
{
private:
    enum {Lbs_per_stn = 14};
    int stone;
    double pds_left;
    double pounds;
public:
    explicit Stonewt(double lbs);
    Stonewt(int stn, double lbs);
    Stonewt();
    ~Stonewt();

    void show_lbs() const;
    void show_stn() const;

    // 转换函数
    explicit operator double() const;
    explicit operator int() const;

    // 重载加法运算符
    Stonewt operator+(const Stonewt & st) const;
    friend Stonewt operator+(double pounds, const Stonewt & st2);

    Stonewt operator*(double multiplier) const;
    friend Stonewt operator*(double multiplier, const Stonewt & st);
};



#endif